﻿//添加品牌二级分类
function Stair(strValue)
{
   if(strValue!="")
   {
       YXShop.Web.Admin.Product.Pro_Brand_Add.SecondaryCategories(strValue,test_call_backSecondary);
       document.getElementById("CategoriesValue").innerHTML="二级分类：";
       document.getElementById("rpitchon").checked=false;
   }
}
//修改品牌分类
function StairMod(strValue)
{
   if(strValue!="")
   {
       YXShop.Web.Admin.Product.Brand_Edit.SecondaryCategories(strValue,test_call_backSecondary);
       document.getElementById("CategoriesValue").innerHTML="二级分类：";
       document.getElementById("rpitchon").checked=false;
   }
}
function test_call_backSecondary(res)
{
   document.getElementById("SecondaryCategories").innerHTML=res.value;
   document.getElementById("ThirdClassCategories").innerHTML="<select name=\"select\" size=\"8\" style=\"width:200px\"></select>";
}
//添加品牌三级分类
function Secondary(strValue)
{
   if(strValue!="")
   {
      YXShop.Web.Admin.Product.Pro_Brand_Add.ThirdClassCategories(strValue,test_call_backThirdClass);
      document.getElementById("CategoriesValue").innerHTML="三级分类：";
      document.getElementById("rpitchon").checked=false;
   }
}
//修改品牌分类
function SecondaryMod(strValue)
{
   if(strValue!="")
   {
       YXShop.Web.Admin.Product.Brand_Edit.SecondaryCategories(strValue,test_call_backThirdClass);
       document.getElementById("CategoriesValue").innerHTML="三级分类：";
       document.getElementById("rpitchon").checked=false;
   }
}
function test_call_backThirdClass(res)
{
   document.getElementById("ThirdClassCategories").innerHTML=res.value;
}

